package com.bawei.mall.search.service.impl;

import com.bawei.mall.search.domain.Po.Brand;
import com.bawei.mall.search.domain.Po.BrandThumbsUp;
import com.bawei.mall.search.mapper.BrandMapper;
import com.bawei.mall.search.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author：liurui
 * @Package：com.bawei.mall.search.service.impl
 * @Project：mall_cloud
 * @name：BrandServiceImpl
 */
@Service
public class BrandServiceImpl implements BrandService {
    @Autowired
    private BrandMapper mapper;

    @Override
    public Brand detail(Integer id) {
        return mapper.detail(id);
    }

    @Override
    public void delete(Integer brandId) {
        mapper.delete(brandId);
    }

    @Override
    public void add(BrandThumbsUp brandThumbsUp) {
        mapper.add(brandThumbsUp);
    }

    @Override
    public BrandThumbsUp detailup(Integer brandId) {
        return mapper.detailup(brandId);
    }
}
